package dev.alm.cloudproviderpayment8001.controller;

import dev.alm.cloudproviderpayment8001.common.CR;
import dev.alm.cloudproviderpayment8001.entity.Pay;
import dev.alm.cloudproviderpayment8001.mapper.PayMapper;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


@RestController
@RequestMapping("pay")
public class PayController {

    @Resource
    private PayMapper payMapper;

    @GetMapping("list")
    public CR list() {
        List<Pay> payList = payMapper.getPayList();
        System.out.println(payList);
        return null;
    }



}
